package xyz.robinbingo.effectivejava.chapter03.item14;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author Robin
 * @date 2019/03/18 11:41
 **/
@Data
@Accessors(chain = true)
public class SettleRange implements Comparable<SettleRange> {
    private Date start;
    private Date end;


    @Override
    public int compareTo(SettleRange o) {
        return this.start.compareTo(o.start);
    }
}
